Package io.realm.kotlin.mongodb.sync

Types

BaseSubscriptionSet
Link copied to clipboard
interface BaseSubscriptionSet : Iterable<Subscription>
Base interface for shared functionality between SubscriptionSet and MutableSubscriptionSet.
ConnectionState
Link copied to clipboard
enum ConnectionState : Enum<ConnectionState>
A connection state indicates the state of the underlying connection of the SyncSession.
ConnectionStateChange
Link copied to clipboard
data class ConnectionStateChange(oldState: ConnectionState, newState: ConnectionState)
A connection state change indicates a change in the SyncSession's underlying connection state.
Direction
Link copied to clipboard
enum Direction : Enum<Direction>
A direction indicates whether a given Progress-flow created with SyncSession.progressAsFlow is reporting changes when either uploading or downloading data.
DiscardUnsyncedChangesStrategy
Link copied to clipboard
interface DiscardUnsyncedChangesStrategy : SyncClientResetStrategy
Strategy that automatically resolves a Client Reset by discarding any unsynced local data but otherwise keeps the realm open.
InitialRemoteDataConfiguration
Link copied to clipboard
data class InitialRemoteDataConfiguration(timeout: Duration)
Configuration options if SyncConfiguration.Builder.waitForInitialRemoteData is enabled.
InitialSubscriptionsCallback
Link copied to clipboard
fun fun interface InitialSubscriptionsCallback
Callback used to populate the initial SubscriptionSet when opening a Realm.
InitialSubscriptionsConfiguration
Link copied to clipboard
data class InitialSubscriptionsConfiguration(callback: InitialSubscriptionsCallback, rerunOnOpen: Boolean)
Configuration options if SyncConfiguration.Builder.initialSubscriptions is enabled.
ManuallyRecoverUnsyncedChangesStrategy
Link copied to clipboard
Strategy to manually resolve a Client Reset.
MutableSubscriptionSet
Link copied to clipboard
interface MutableSubscriptionSet : BaseSubscriptionSet
A mutable subscription set makes it possible to add, remove or modify a SubscriptionSet.
Progress
Link copied to clipboard
data class Progress(transferredBytes: ULong, transferableBytes: ULong)
A progress indicator emitted by flows created from SyncSession.progressAsFlow.
ProgressMode
Link copied to clipboard
enum ProgressMode : Enum<ProgressMode>
A progress mode is used to select which notifications are received from SyncSession.progressAsFlow.
Subscription
Link copied to clipboard
interface Subscription
A subscription defines a specific server query and its metadata.
SubscriptionSet
Link copied to clipboard
interface SubscriptionSet<T : BaseRealm> : BaseSubscriptionSet
A subscription set is an immutable view of all current Subscriptions for a given Realm that has been configured for Flexible Sync.
SubscriptionSetState
Link copied to clipboard
enum SubscriptionSetState : Enum<SubscriptionSetState>
The possible states a SubscriptionSet or MutableSubscriptionSet can be in.
SyncClientResetStrategy
Link copied to clipboard
interface SyncClientResetStrategy
Interface that defines a generic sync client reset strategy.
SyncConfiguration
Link copied to clipboard
interface SyncConfiguration : Configuration
A SyncConfiguration is used to setup a Realm Database that can be synchronized between devices using Atlas Device Sync.
SyncMode
Link copied to clipboard
enum SyncMode : Enum<SyncMode>
This enum determines how Realm sync data with the server.
SyncSession
Link copied to clipboard
interface SyncSession
A session controls how data is synchronized between a single Realm on the device and MongoDB on the server.

Functions

asQuery
Link copied to clipboard
inline fun <T : RealmObject> Subscription.asQuery(): RealmQuery<T>
Converts the Subscription.queryDescription back to a RealmQuery that can be executed against the local Realm.